package demo1;

/**
 * Created with IntelliJ IDEA.
 * Description：
 * User：user
 * DATE:2021-10-27
 * Time:15:35
 */
class  Student{

}
class  Teacher{

}
class  School{
    //组合关系
    public  Student[] students;
    public  Teacher[] teachers;
}

class Money{

}
class Person{
    //组合。类的对象作为字段
    public Money money;
    public String name;
    public int age;
}
public class Test1 {
    protected  int a = 10;
}
